import request from "@/utils/request";

// 获取商家列表
export function getMerchant(data) {
	return request.get("merchant", {
		params: data,
	}).then(res => {
		const {
			s,
			d
		} = res
		if (s === 0) {
			return d.data || []
		} else {
			return []
		}
	}).catch(e => {
		return []
	});
}